package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.VisitingrecordTbMapper;
import com.ruoyi.system.domain.VisitingrecordTb;
import com.ruoyi.system.service.IVisitingrecordTbService;

/**
 * 来访记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-25
 */
@Service
public class VisitingrecordTbServiceImpl implements IVisitingrecordTbService 
{
    @Autowired
    private VisitingrecordTbMapper visitingrecordTbMapper;

    /**
     * 查询来访记录
     * 
     * @param receiveId 来访记录主键
     * @return 来访记录
     */
    @Override
    public VisitingrecordTb selectVisitingrecordTbByReceiveId(String receiveId)
    {
        return visitingrecordTbMapper.selectVisitingrecordTbByReceiveId(receiveId);
    }

    /**
     * 查询来访记录列表
     * 
     * @param visitingrecordTb 来访记录
     * @return 来访记录
     */
    @Override
    public List<VisitingrecordTb> selectVisitingrecordTbList(VisitingrecordTb visitingrecordTb)
    {
        return visitingrecordTbMapper.selectVisitingrecordTbList(visitingrecordTb);
    }

    /**
     * 新增来访记录
     * 
     * @param visitingrecordTb 来访记录
     * @return 结果
     */
    @Override
    public int insertVisitingrecordTb(VisitingrecordTb visitingrecordTb)
    {
        return visitingrecordTbMapper.insertVisitingrecordTb(visitingrecordTb);
    }

    /**
     * 修改来访记录
     * 
     * @param visitingrecordTb 来访记录
     * @return 结果
     */
    @Override
    public int updateVisitingrecordTb(VisitingrecordTb visitingrecordTb)
    {
        return visitingrecordTbMapper.updateVisitingrecordTb(visitingrecordTb);
    }

    /**
     * 批量删除来访记录
     * 
     * @param receiveIds 需要删除的来访记录主键
     * @return 结果
     */
    @Override
    public int deleteVisitingrecordTbByReceiveIds(String[] receiveIds)
    {
        return visitingrecordTbMapper.deleteVisitingrecordTbByReceiveIds(receiveIds);
    }

    /**
     * 删除来访记录信息
     * 
     * @param receiveId 来访记录主键
     * @return 结果
     */
    @Override
    public int deleteVisitingrecordTbByReceiveId(String receiveId)
    {
        return visitingrecordTbMapper.deleteVisitingrecordTbByReceiveId(receiveId);
    }


}
